package com.keith.asteria.controller.systemController;

import com.keith.asteria.controller.remoteApi.RemoteSysUserApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import system.SysUser;

/**
 * @ClassName SysUserController
 * @Author chenli
 * @Time 2018/10/31
 **/
@Controller
public class SysUserController {

	@Autowired
	RemoteSysUserApi remoteSysUserApi;

	@RequestMapping(value = "/findUser")
	@ResponseBody
	public Object findUser(@RequestParam(name = "id") Integer id) {
		SysUser user = remoteSysUserApi.findUser(1);
		return  user;
	}



}
